const path = require('path')

module.exports = {
  // outputDir:'./build',  //打包后的文件夹名称
  // publicPath:'./',
  chainWebpack:(config) => {
    config.resolve.alias
    .set('@',path.resolve(__dirname,'src'))
    .set('components','@/components')
  },
  devServer: {
    proxy: {
      '^/api':{
        target:'http://152.136.185.210:5000',
        pathRewrite:{
          '^/api':''
        },
        changeOrigin: true
      }
    }
  }
}
